#include "StdAfx.h"
#include "IOCPSocket.h"

CIOCPSocket::CIOCPSocket(void):
m_Socket(INVALID_SOCKET),
m_pMainIOCP(NULL)
{
}

CIOCPSocket::~CIOCPSocket(void)
{
	

	if (NULL != m_Socket && INVALID_SOCKET != m_Socket)
	{
		closesocket( m_Socket );
		m_Socket = INVALID_SOCKET ;
	}

	if (NULL != m_pMainIOCP)
	{
		m_pMainIOCP =NULL;
	}

}
